import axios from '@/utils/axios';

//注册
export const DataItemSourceApi = (params) => {
	return axios({
		url:'/Api/Common/DataItemSourceApi',
		method: "post",
		data:params
	})
}

//注册
export const RegisterAccount = (params) => {
	return axios({
		url:'/Api/Common/RegisterAccount',
		method: "post",
		data:params
	})
}

//登录
export const SignIn = (params) => {
	return axios({
		url:'/Api/Common/SignIn',
		method: "post",
		data:params
	})
}
//创建留言
export const CreateMessage = (params) => {
	return axios({
		url:'/Api/Common/CreateMessage',
		method: "post",
		data:params
	})
}
//留言列表
export const GetMessageList = (params) => {
	return axios({
		url:'/Api/Common/GetMessageList',
		method: "get",
		params
	})
}
//删除留言
export const DeleteMessage = (params) => {
	return axios({
		url:'/Api/Common/DeleteMessage',
		method: "post",
		data:params
	})
}
//回复列表
export const GetAnswerMessageList = (params) => {
	return axios({
		url:'/Api/Common/GetAnswerMessageList',
		method: "get",
		params
	})
}
//回复留言
export const ReplyMessage = (params) => {
	return axios({
		url:'/Api/Common/ReplyMessage',
		method: "post",
		data:params
	})
}
// 发送邮箱
export const EamilSendServiceApi = (params) => {
	return axios({
		url:'/Api/Common/EamilSendServiceApi',
		method: "post",
		data:params
	})
}

// 重置密码
export const ResetPwdApi = (params) => {
	return axios({
		url:'/Api/Common/ResetPwdApi',
		method: "post",
		data:params
	})
}

// 重置密码
export const ResetPwdTicketApi = (params) => {
	return axios({
		url:'/Api/Common/GetBackPwdApi',
		method: "post",
		data:params
	})
}

// 获取个人信息
export const GetUserInfo = (params) => {
	return axios({
		url:'/Api/Common/GetUserInfo',
		method: "post",
		data:params
	})
}

// 修改个人信息
export const ModifyUserInfo = (params) => {
	return axios({
		url:'/Api/Common/ModifyUserInfo',
		method: "post",
		data:params
	})
}

// 上传头像
export const PostUploadApi = (params) => {
	return axios({
		url:'/Api/Common/PostUploadApi',
		method: "post",
		data:params
	})
}

